import service from '../utils/request'
import Api from "./serviceApi";
import exp from "constants";

export function getSessionVo(){
    return service({
        url: Api.common.chat.getSessionVo,
        method:'get',
        headers:{
            "Content-Type":"application/json;charset-utf-8" //设置一下请求头
        }
    })
}

export function getChatList(data:any){
    return service({
        url: Api.common.chat.getChatList,
        method:'get',
        params:data
    })
}

export function setRead(data:any){
    return service({
        url: Api.common.chat.setRead,
        method:'get',
        params:data
    })
}

export function createSession(data:any){
    return service({
        url: Api.common.chat.createSession,
        method:'post',
        params:data
    })
}

export function deleteSession(data:any){
    return service({
        url: Api.common.chat.deleteSession,
        method:'post',
        params:data
    })
}
